/**
 * Classname :CalcHelpers.java
 *
 * Version information: 1.0
 *
 * Date: Jan 20, 2011 ho.viet.duan create
 *
 * MDG Viet Name co.ltd, All Rights Reserved.
 */

package com.zho.util;

import java.math.BigDecimal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author ho.viet.duan Created Jan 20, 2011
 */
public class CalcHelpers {

	// for logging
	private static Logit  m_log = Logit.getInstance(CalcHelpers.class);

	// default integer set used in Rounding
	private static final int ROUND_UP = 0;
	private static final int ROUND_DOWN = 1;
	private static final int ROUND_CEILING = 2;
	private static final int ROUND_FLOOR = 3;
	private static final int ROUND_HALF_UP = 4;
	private static final int ROUND_HALF_DOWN = 5;

	// correction for calculating difference
	private static final int CALC_DIF = 3;
	private static final int CALC_ROUND = BigDecimal.ROUND_HALF_UP;

	// singleton
	private CalcHelpers() {
		;
	}

}
